<template>
    <div>
        <h1>Router:{{ title }}</h1>
        <button @click="back">后退</button>
        <button @click="forword">前进</button>
    </div>
</template>

<script>
export default {
    name: 'Banner',
    data() {
        return {
            title: '路由组件'
        }
    },
    methods: {
        back(){
            this.$router.back()
        },
        forword(){
            this.$router.forward()
        }
    },
}
</script>

<style></style>